﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;

namespace Groupware
{
    public class OperationNotAllowedException : Exception
    {
        public OperationNotAllowedException(string message) : base(message) { }
    }

    public class ParametersException : Exception
        {
            public ParametersException(string message) : base(message) { }
            public override string Message
            {
                get
                {
                    StringBuilder sb = new StringBuilder(base.Message);
                    foreach (DictionaryEntry err in Data)
                    {
                        sb.Append("\n");
                        sb.Append(err.Key);
                        sb.Append(": ");
                        sb.Append(err.Value);
                    }
                    return sb.ToString();
                }
            }
        }
}
